SocketOptionsBuilder

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Timeout for a pending NamespaceSocket.emitWithAck acknowledgement, in milliseconds. 0 (default) disables the timer; the pending ack is still failed if the connection drops, so it never hangs indefinitely. When > 0, the flow fails with SocketError.Timeout if no ACK arrives in time.

Link copied to clipboard
Link copied to clipboard

When true, Transports.WEBTRANSPORT is accepted in transports and the internal factory registers a stub transport (opens fail until platform WebTransport is implemented).

Link copied to clipboard
Link copied to clipboard
var httpClient: HttpClient?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun auth(block: JsonObjectBuilder.() -> Unit)

Sets the auth payload sent in the Socket.IO CONNECT packet, using kotlinx.serialization's JsonObjectBuilder DSL so values may be strings, numbers, booleans, or nested objects:

Link copied to clipboard
Link copied to clipboard
fun transports(vararg names: String)